/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package testws;

import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.io.OutputStreamWriter;
import java.net.MalformedURLException;
import java.net.URL;
import java.net.*;

/**
 *
 * @author Tmblue
 */
public class Main {

    /**
     * @param args the command line arguments
     */


    public static void main(String[] args) {
        // Install the custom authenticator

        webservice ws = new webservice();
        System.out.println(ws.getResponse("http://localhost/ws/user/index.xml"));
        System.out.println(ws.sendPOSTRequest("http://localhost/ws/test/get.xml"));
    }

   


}